package com.union.core.workModel.dao;

import java.util.List;

import com.union.core.workModel.model.ModelIncom;

public interface ModelIncomDao {
	/**
	 * 查询：根据收入id查询单条收入记录
	 * @param incomId
	 * @return
	 */
	public ModelIncom queryById(int incomId);
	/**
	 * 查询：根据劳模ID以及收入类型查询列表
	 * @param modelId
	 * @param type
	 * @return
	 */
	public List<ModelIncom> queryIncomList(int modelId,int type);
	/**
	 * 删除：根据劳模id
	 * @param modelId
	 * @return
	 */
	public boolean delIncomList(int modelId);
	/**
	 * 删除：根据收入id删除单条记录
	 * @param incomId
	 * @return
	 */
	public boolean delIncom(int incomId);
	/**
	 * 修改：修改收入记录
	 * @param modelIncom
	 * @return
	 */
	public boolean editIncom(ModelIncom modelIncom);
	/**
	 * 添加：添加收入记录
	 * @param modelIncom
	 * @return
	 */
	public boolean addIncom(ModelIncom modelIncom);
}
